<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.3/vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-test="{user:'ee'}"></div>
</div>
<script>

    let  vm = new Vue({
        el:"#app",
        data:{

        },
        directives:{
            'test':{
                "bind":function (el, binding, vnode) {
                    console.log(el)
                },
                "inserted":function (el, binding, vnode) {
                        console.log(binding.value.user)
                }
            }
        }
    })
</script>
</body>
</html>